const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token, // 在根级的getters上 开发子模块的属性给别人看 给别人用
  name: state => state.user.userInfo.username, // 建立用户名称的映射
  userId: state => state.user.userInfo.userId, // 建立用户id的映射
  staffPhoto: state => state.user.userInfo.staffPhoto, // 建立用户头像的映射
  companyId: state => state.user.userInfo.companyId,// 建立对于user模块的companyId的快捷访问
  departmentName:state=>state.user.userInfo.departmentName,
  routes:state=>state.permission.routes //建立对于permission模块的routes的快捷访问,方便获取路由，在左侧菜单栏使用
}
export default getters
